
# 删除bin目录
rm -rf $PWD/bin


# 创建bin目录
mkdir -p $PWD/bin/mac-x64

# 开启CGO 编译c相关代码
export CGO_ENABLED=1
export GOOS=darwin
export GOARCH=amd64


fyne package -id "com.huanmin.tool"    -os darwin -icon  icon.png   -name tool -release true
mv tool.app $PWD/bin/mac-x64/tool.app



